//
//  SettingViewController.h
//  iOS-CtrlV
//
//  Created by 龚 杰 on 12-12-20.
//  Copyright (c) 2012年 Wang Li. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "NicknameSetViewController.h"
#import "DLCImagePickerController.h"
#import "MyHttpProcessor.h"
#import "AsyncImageView.h"

@protocol SettingViewDelegate <NSObject>
@optional
- (void)ModifyNameText:(NSString*)text;
- (void)ModifyHaedText:(UIImage*)text;
- (void)Cleanup;
@end


@interface SettingViewController : UIViewController<UITableViewDataSource,UITableViewDelegate,MBProgressHUDDelegate,NicknameSetDelegate,DLCImagePickerDelegate,MyHttpProcessorDelegate>
{
    UIButton* m_BackBttBarItem;
    UIButton* m_settngBttBarItem;
    UITableView* m_TableView;
    AsyncImageView* m_headimage;
    UILabel* m_name;
    DLCImagePickerController* m_DLCImagePicker;
    MBProgressHUD* m_MBHUD;
    NSString* m_userid;
    NSString* m_pcode;
    NSString* m_oldname;
    UIImage* m_oldhaedimg;
    NSInteger sendtype;
    UIImage* m_chaeding;
    UISwitch* m_iSwitch_QQ;
    UISwitch* m_iSwitch_SINA;
    NSInteger m_type;
    BOOL isSend;
    NSString* m_head_url;
    
}
@property(nonatomic,retain)UIImage* headimage;
@property(nonatomic,retain)NSString* name;
@property(nonatomic,retain)NSString* headurl;
@property(nonatomic,retain)id<SettingViewDelegate>delegate;

- (void)navBackBtta;
- (void)navSettingBtt;
- (void)requestuserinfo;
- (void)popview;
- (void)changeiSwitch:(id)_iSwitch;
@end
